package nickthissen.iracing.common;

import android.content.Context;
import android.content.Intent;

import nickthissen.iracing.iracingforum2.R;

/**
 * Created by nthissen on 24/05/13.
 */
public class Sharing
{
    public static void shareForumUrl(Context context, String url)
    {
        Intent sendIntent = new Intent();
        sendIntent.setAction(Intent.ACTION_SEND);
        sendIntent.putExtra(Intent.EXTRA_TEXT, Urls.getForumUrl(url));
        sendIntent.setType("text/plain");

        context.startActivity(Intent.createChooser(sendIntent, "Share URL via..."));
    }
}
